package com.ckr.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author Shadowckr
 * @create 2022-01-01 13:05
 */

//@Controller
//public class TestController {
//    @RequestMapping("/t3")
//    public String test(){
//        return "test";
//    }
//}
//访问路径：http://localhost:8080/项目名/t3

@Controller
@RequestMapping("/admin")
public class ControllerTest3 {
    @RequestMapping("/t3")
    public String test(){
        return "test";
    }
}
//访问路径：http://localhost:8080/项目名/admin/t3，需要先指定类的路径再指定方法的路径